import {get,post} from '@/puigins/request.js'

export function getVideoApiList(){
	return get("/admin/video/getVideoApiList")
}

export function update(obj){
	return post("/admin/video/update",obj)
}

export function add(obj){
	return post("/admin/video/add",obj)
}

export function del(id){
	if(isNaN(id)) return console.log("id is nan")
	return post("/admin/video/delete",{id})
}

export function changeEnable(id,enable){
	return post("/admin/video/changeEnable",{id,enable})
}